package com.ynet.middleground.riskmanage.bean;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 查询保理池业务出入池状态请求信息
 * @date 2020-08-17 16:28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "查询保理池业务出入池状态请求信息", description = "查询保理池业务出入池状态请求信息")
public class BlchQueryReq extends BaseReqObj {

    private static final long serialVersionUID = 6016054979122059261L;

    @ApiModelProperty(value = "单据编号", notes = "单据编号", required = true)
    @NotEmpty(message = "单据编号不能为空")
    private String orderNum;

    @ApiModelProperty(value = "单据类型 0 发票; 1 费用确认单;(若是发票，根据单据编号+序列号可确定唯一；若是费用确认单，根据单据编号+币种+序列号确定唯一)",
        notes = "单据类型 0 发票; 1 费用确认单;(若是发票，根据单据编号+序列号可确定唯一；若是费用确认单，根据单据编号+币种+序列号确定唯一)", required = true)
    @Size(max = 1)
    @NotEmpty(message = "单据类型不能为空")
    private String orderType;

    @ApiModelProperty(value = "币种", notes = "币种", required = true)
    @NotEmpty(message = "币种不能为空")
    private String currency;

    @ApiModelProperty(value = "序列号", notes = "序列号", required = true)
    @NotEmpty(message = "序列号不能为空")
    @Size(max = 36)
    private String serialNo;
}
